/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Presente;

import View.GerarRelatorioView;
import View.MainVendedorView;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 *
 * @author Thalyta
 */
public class GerarRelatorioPresente {

    private GerarRelatorioView view = new GerarRelatorioView();
    GerarRelatorioPresente(GerarRelatorioView vie) {
       view = vie ;
        view.getBtnfechar().addActionListener(new ActionListener() {

           
            @Override
            public void actionPerformed(ActionEvent e) {
                fechar();
            }
        });
               view.setLocationRelativeTo(null);

       view.setVisible(true);
    }
    public void fechar(){

view.setVisible(false);
}
}